<div class="container-fluid p-t-15">
    <div class="row"> 
        <div class="col-md-12 col-lg-12 col-xl-6">
            <div class="card bg-white m-b-30">
                <div class="card-body new-user">
                    <h5 class="header-title mb-4 mt-0"> 对接Api</h4>
                    <div class="panel-body">
                        <div class="form-group">
                            <label>对接接口</label>
                            <input type="text" id="apiurl" name="apiurl" value="<?=$url?>/" class="form-control" disabled>
                        </div>
                        <div class="form-group">
                            <label>对接PID</label>
                            <input type="text" id="pid" name="pid" value="<?=$userrow['pid']?>" class="form-control" disabled>
                        </div>
                        <div class="form-group">
                            <label>对接KEY</label>
                            <input type="text" id="key" name="key" value="<?=$userrow['key']?>" class="form-control" disabled><font color="green">需要重置KEY请在用户中心那重置哦</font>
                        </div>
                        <div class="form-group"><a href="./Doc.php" class="btn btn-sm btn-success" target="_blank">查看开发文档</a></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-12 col-lg-12 col-xl-6">
            <div class="card bg-white m-b-30">
                <div class="card-body new-user">
                    <h5 class="header-title mb-4 mt-0">修改商户信息</h4>
                    <div class="panel-body">
                        <div class="form-group">
                            <label>自定义登录账号</label>
                            <input type="text"  value="<?=$userrow['user']?>" class="form-control" readonly="">
                        </div>
                        <div class="form-group">
                            <label>登录密码（必填）</label>
                            <input type="password" id="pass" name="pass" class="form-control" placeholder="不修改请填老密码">
                        </div>
                        <div class="form-group">
                            <label>二级密码（必填）</label>
                            <input type="password" id="pay_pass" name="pay_pass" class="form-control" placeholder="不修改请填老密码">
                        </div>
                        <div class="form-group">
                            <label>安全验证邮箱账号</label>
                            <input type="text"  value="<?=$userrow['email']?>" class="form-control" readonly="">
                            <b>注意：邮箱不可修改</b>
                        </div>
                        <div class="form-group">
                            <label>绑定QQ号</label>
                            <input type="text" id="qq" name="qq" value="<?=$userrow['qq']?>" class="form-control">
                        </div>
                        <?php if($conf['user_mail'] == 0):?>
                        <div class="form-group">
                            <input type="text" id="code" name="code" placeholder="邮箱验证码" class="form-control" minlength="7" maxlength="7">
                            <input  id="obtain-code" class="form-control obtain-code" type="button" onclick="Qr_Code();" value="点击获取" required="">
                            <br>
                        </div>
                        <?php endif;?>
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary btn-block" onclick="set();">确定修改</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>           
    </div><!-- .row -->
</div>
<script src="<?=userassets?>/js/js.js"></script>
<script src="<?=userassets?>core_js/Api_Set.js"></script>